public// 定义坦克类
class Tank extends Hero implements Safe {
    private final int damage2;
    private final int damage3;

    public int getDamage2() {
        return damage2;
    }

    public int getDamage3() {
        return damage3;
    }

    public Tank() {
        super("坦克", 120, 6, 10);
        this.damage2 = 12;
        this.damage3 = 20;
    }

    @Override
    public void show() {
        System.out.println(name + "成功防御了对方的攻击！");
    }
}

